package regex;
/**
 * String ReplaceAll(String regex,String replacement)
 * 替换：将当前字符中满足正则表达式（regex）的部分替换为给定字符串（replacement）*/
public class ReplaceAllDemo {
    public static void main(String[] args) {
        String line = "abc123def456asf879";
        String newline = line.replaceAll("\\d+","岳黎明");
        System.out.println(newline);
    }
}
